@extends('admin/layout')
@section('title','维护更新')
@section('content')
<!-- Content Header (Page header) -->
<script type="text/javascript" src="/home/js/updatePerson/uploadPreview.js"></script>
<section class="content-header">
  <h1>
    <a href="{{asset('admin/member')}}">维护更新</a>
    <small>这是维护更新页面</small>
  </h1>
  <ol class="breadcrumb">
  	<li><a href="{{asset('admin/index')}}"><i class="fa fa-th"></i> 站点管理</a></li>
    <li><i class="fa fa-users"></i> 维护更新</li>
    <li><a href="{{asset('admin/member')}}"><i class="fa fa-user"></i> 维护更新</a></li>
    <li class="active">维护更新</li>
  </ol>
</section>

<!-- Main content -->
<section class="content">
	<div class="row">
  		<div class="col-md-12">
  	  	  <!-- box start -->
            <div class="box box-info">
    	          <div class="box-header with-border">
    	             <h3 class="box-title"><i class="fa fa-user-plus"> 维护更新站点</i></h3>
    	          </div>
                <!-- form start -->
                @foreach($data as $v)
                  <form class="form-horizontal" action="{{asset('admin/maintain/update')}}" method="post" enctype="multipart/form-data">
                    {{csrf_field()}}
                    <input type="hidden" name="oldlog" value="{{$v -> LOG}}">
                    <div class="box-body">
                      <div class="form-group">
                        <label for="inputname" class="col-sm-2 col-md-2 control-label">网站名称：</label>
                        <div class="col-sm-6 col-md-5">
                          <input type="text" name="webName" value="{{$v -> webName}}" class="form-control" id="inputname" placeholder="请输入网站名称">
                        </div>
                        <span class="help-block col-sm-4 col-md-5">
                        </span>
                      </div>                    
                      <div class="form-group">
                        <label for="inputphone" class="col-sm-2 col-md-2 control-label">网站关键字：</label>
                        <div class="col-sm-6 col-md-5">
                          <input type="text" name="keywords" value="{{$v -> keywords}}" class="form-control" id="inputphone" placeholder="请输入网站关键字">
                        </div>
                        <span class="help-block col-sm-4 col-md-5">
                        </span>
                      </div>
                      <div class="form-group">
                        <label for="inputemail" class="col-sm-2 col-md-2 control-label">网站版权：</label>
                        <div class="col-sm-6 col-md-5">
                          <input type="text" name="copyright" value="{{$v -> copyright}}" class="form-control" id="inputemail" placeholder="请输入网站版权">
                        </div>
                        <span class="help-block col-sm-4 col-md-5">
                        </span>
                      </div>                   
                      <div class="form-group">
                        <label for="inputemail" class="col-sm-2 col-md-2 control-label">网站开关：</label>
                        <div class="col-sm-2 col-md-2">
                            <select name="switch" class="form-control" >
                            @if($v -> switch == 1)
                              <option  value="1" 
                              selected>开启</option>
                              <option  value="2" >关闭</option>
                            @else
                              <option  value="1" 
                              >开启</option>
                              <option  value="2" selected>关闭</option>
                            @endif
                            </select>
                        </div>
                      </div> 
                      <div class="form-group">
                        <label for="inputpic" class="col-sm-2 col-md-2 control-label">网站LOGO：</label>
                        <div id="warp"  class="col-sm-10 col-md-10">                     
                          <li style="list-style-type: none;">
                              <img id="imgShow_WU_FILE_0"  src="{{$v -> LOG}}" />
                              <input type="file" id="up_img_WU_FILE_0" name="log" value="{{$v -> LOG}}"/>
                          </li>
                        </div>
                        <span class="help-block col-sm-10 col-sm-offset-2 col-md-10 col-md-offset-2">
                        </span>
                      </div>   
                      <div class="box-footer">
                        <button type="reset" class="btn btn-default col-sm-2 col-sm-offset-2 col-md-2 col-md-offset-2">还原</button>
                        <button id="submit"  class="btn btn-info col-xs-offset-1 col-sm-2 col-sm-offset-1 col-md-2 col-md-offset-1">更新</button>
                      </div>
                    </div>
                  </form>
                @endforeach
                <!-- form end -->
            </div>
            <!-- /.box -->
  	 </div>
  </div>
</section>
<!-- /.content -->
@stop